/**
 * 2008-8-8
 * @author daniel zhang 
 */
package com.affectu.news;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.validator.Length;
import org.jboss.seam.annotations.Name;

import com.affectu.common.base.EntityBase;

/**
 * 2008-8-8
 * 
 * @author daniel zhang
 * 
 */
@Entity
@Name("news")
public class News extends EntityBase {

	private static final long serialVersionUID = 1565309261814487096L;

	private String link;

	// @Column(columnDefinition = "MEDIUMTEXT")
	@Length(max = 10240)
	private String content;

	private Integer level;

	@Temporal(TemporalType.TIMESTAMP)
	private Date beginTime;

	private Date endTime;

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Date getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
}
